package com.hsgene.goods.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * 编码信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/25
 */
public class CommonCode implements Serializable {

    private static final long serialVersionUID = 8262638124793370114L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 编码所属模块
     */
    private String module;

    /**
     * 编号类型
     */
    private String type;

    /**
     * 编码类型名称
     */
    private String typeName;

    /**
     * 编码
     */
    private Integer code;

    /**
     * 编码名称
     */
    private String name;

    /**
     * 父级编码id
     */
    private Long parentId;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
